//
//  MCGameRecordDetailViewController.m
//  TLYL
//
//  Created by miaocai on 2017/7/10.
//  Copyright © 2017年 TLYL01. All rights reserved.
//

#import "MCGameRecordDetailViewController.h"

@interface MCGameRecordDetailViewController ()


@end

@implementation MCGameRecordDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"订单详情";
    self.view.backgroundColor = [UIColor whiteColor];
    [self addNavRightBtn];
    [self setUpUI];
    [self loadDataAndShow];
}

- (void)addNavRightBtn {
    
    UIButton *btn = [[UIButton alloc] init];
    [btn setTitle:@"彻单" forState:UIControlStateNormal];
    [btn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    btn.titleLabel.font = [UIFont systemFontOfSize:14.0f];
    btn.frame = CGRectMake(0, 0, MC_REALVALUE(44), MC_REALVALUE(44));
    [btn addTarget:self action:@selector(cancleBtnClick:) forControlEvents:UIControlEventTouchDown];
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithCustomView:btn];
    self.navigationItem.rightBarButtonItem = rightItem;
}

- (void)setUpUI{
    
    UIScrollView *baseScrollView = [[UIScrollView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:baseScrollView];
    
    UILabel *dingDanLabel = [[UILabel alloc] init];
    dingDanLabel.text = @"订单号：";
    [baseScrollView addSubview:dingDanLabel];
    
    UILabel *dingDanDetailLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:dingDanDetailLabel];
    dingDanDetailLabel.text = @"123123213";
    UIButton *dingDanBtnCopy = [[UIButton alloc] init];
    [dingDanBtnCopy setTitle:@"复制" forState:UIControlStateNormal];
    [baseScrollView addSubview:dingDanBtnCopy];
    [dingDanBtnCopy setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    dingDanBtnCopy.layer.borderWidth = 1.0f;
    dingDanBtnCopy.layer.borderColor = [UIColor blueColor].CGColor;
    dingDanBtnCopy.layer.cornerRadius = 4.0f;
    [dingDanBtnCopy addTarget:self action:@selector(dingDanBtnCopyClick) forControlEvents:UIControlEventTouchUpInside];
    
    UILabel *liuShuiLabel = [[UILabel alloc] init];
    liuShuiLabel.text = @"流水号：";
    [baseScrollView addSubview:liuShuiLabel];
    
    UILabel *liuShuiDetailLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:liuShuiDetailLabel];
    
    UIButton *liuShuiBtnCopy = [[UIButton alloc] init];
    [liuShuiBtnCopy setTitle:@"复制" forState:UIControlStateNormal];
    [baseScrollView addSubview:liuShuiBtnCopy];
    [liuShuiBtnCopy setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    liuShuiBtnCopy.layer.borderWidth = 1.0f;
    liuShuiBtnCopy.layer.borderColor = [UIColor blueColor].CGColor;
    liuShuiBtnCopy.layer.cornerRadius = 4.0f;
    [liuShuiBtnCopy addTarget:self action:@selector(liuShuiBtnCopyClick) forControlEvents:UIControlEventTouchUpInside];
    liuShuiDetailLabel.text = @"13245678";
    
    UILabel *zhuiLabel = [[UILabel alloc] init];
    zhuiLabel.text = @"是否追号：";
    [baseScrollView addSubview:zhuiLabel];
    
    UILabel *zhuiDetailLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:zhuiDetailLabel];
    zhuiDetailLabel.text = @"234567";
    UIView *lineView1 = [[UIView alloc] init];
    [baseScrollView addSubview:lineView1];
    lineView1.backgroundColor = [UIColor darkGrayColor];
    
    UILabel *lotteryLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:lotteryLabel];
    lotteryLabel.text = @"从海南过年给你发给你发";
    UIButton *lotteryBtn = [[UIButton alloc] init];
    [lotteryBtn setTitle:@"【购彩成功】" forState:UIControlStateNormal];
    [baseScrollView addSubview:lotteryBtn];
    [lotteryBtn setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    [lotteryBtn addTarget:self action:@selector(lotteryBtnClick) forControlEvents:UIControlEventTouchUpInside];
    
    
    
    UILabel *qihaoLabel = [[UILabel alloc] init];
    qihaoLabel.text = @"期号：";
    [baseScrollView addSubview:qihaoLabel];
    
    UILabel *qihaoDetailLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:qihaoDetailLabel];
    qihaoDetailLabel.text = @"24356";
    UILabel *kaiJiangLabel = [[UILabel alloc] init];
    kaiJiangLabel.text = @"开奖号码：";
    [baseScrollView addSubview:kaiJiangLabel];
    
    UILabel *wanfaLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:wanfaLabel];
    wanfaLabel.text = @"玩法:";
    UILabel *wanfaDetailLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:wanfaDetailLabel];
    wanfaDetailLabel.text = @"123123";
    
    UILabel *dateLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:dateLabel];
    dateLabel.text = @"购买时间：";
    UILabel *dateDetailLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:dateDetailLabel];
    dateDetailLabel.text = @"123123";
    
    UIView *lineView2 = [[UIView alloc] init];
    [baseScrollView addSubview:lineView2];
    lineView2.backgroundColor = [UIColor darkGrayColor];
    
    
    
    UILabel *zhuDanLabel = [[UILabel alloc] init];
    zhuDanLabel.text = @"注单详情：";
    [baseScrollView addSubview:zhuDanLabel];
    
    UILabel *zhuDanDetailLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:zhuDanDetailLabel];
    
    UILabel *gouMaiLabel = [[UILabel alloc] init];
    gouMaiLabel.text = @"购买金额：";
    [baseScrollView addSubview:gouMaiLabel];
    
    UILabel *gouMaiDeailLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:gouMaiDeailLabel];
    gouMaiDeailLabel.text = @"12312312";
    
    UILabel *zhongJLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:zhongJLabel];
    zhongJLabel.text = @"中奖注数：";
    
    UILabel *zhongJDetailLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:zhongJDetailLabel];
    zhongJDetailLabel.text = @"123123";
    
    UILabel *jiangJinLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:jiangJinLabel];
    jiangJinLabel.text = @"奖金：";
    
    UILabel *jiangJinDetailLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:jiangJinDetailLabel];
    jiangJinDetailLabel.text = @"123123";
    
    UILabel *touzhuLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:touzhuLabel];
    touzhuLabel.text = @"投注号码：";
    
    UILabel *touzhuDetailLabel = [[UILabel alloc] init];
    [baseScrollView addSubview:touzhuDetailLabel];
    touzhuDetailLabel.text = @"90.1561456";
    
    
    UIButton *touzhuBtnCopy = [[UIButton alloc] init];
    [touzhuBtnCopy setTitle:@"复制" forState:UIControlStateNormal];
    [baseScrollView addSubview:touzhuBtnCopy];
    [touzhuBtnCopy setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    touzhuBtnCopy.layer.borderWidth = 1.0f;
    touzhuBtnCopy.layer.borderColor = [UIColor blueColor].CGColor;
    touzhuBtnCopy.layer.cornerRadius = 4.0f;
    [touzhuBtnCopy addTarget:self action:@selector(touzhuBtnCopyClick) forControlEvents:UIControlEventTouchUpInside];
    zhuDanDetailLabel.text = @"1324567890tr";
    
    UIButton *contnueBtn = [[UIButton alloc] init];
    [contnueBtn setTitle:@"继续投注" forState:UIControlStateNormal];
    [baseScrollView addSubview:contnueBtn];
    [contnueBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    contnueBtn.backgroundColor = [UIColor blueColor];
    contnueBtn.layer.cornerRadius = 4.0f;
    [contnueBtn addTarget:self action:@selector(contnueBtnCopyClick) forControlEvents:UIControlEventTouchUpInside];
    
    [dingDanLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.top.equalTo(self.view).offset(84);
    }];
    [dingDanDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(dingDanLabel.mas_right);
        make.top.equalTo(dingDanLabel);
    }];
     [dingDanBtnCopy mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.view).offset(-MC_REALVALUE(10));
        make.centerY.equalTo(dingDanLabel);
         make.height.equalTo(@(25));
         make.width.equalTo(@(64));
    }];
    
    [liuShuiLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.top.equalTo(dingDanLabel.mas_bottom).offset(MC_REALVALUE(10));
    }];
    [liuShuiDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(liuShuiLabel.mas_right);
        make.top.equalTo(liuShuiLabel);
    }];
    [liuShuiBtnCopy mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.view).offset(-MC_REALVALUE(10));
        make.centerY.equalTo(liuShuiLabel);
        make.height.equalTo(@(25));
        make.width.equalTo(@(64));
    }];
    [zhuiLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.top.equalTo(liuShuiLabel.mas_bottom).offset(MC_REALVALUE(10));
    }];
    [zhuiDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(zhuiLabel.mas_right);
        make.top.equalTo(zhuiLabel);
    }];
    [lineView1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(zhuiLabel.mas_bottom).offset(MC_REALVALUE(20));
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.right.equalTo(self.view).offset(-MC_REALVALUE(10));
        make.height.equalTo(@(0.5 ));
    }];
    
    [lotteryLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(zhuiLabel);
        make.top.equalTo(lineView1.mas_bottom).offset(MC_REALVALUE(20));
    }];
    
    [lotteryBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.view).offset(-MC_REALVALUE(10));
        make.centerY.equalTo(lotteryLabel);
        make.height.equalTo(@(25));
        make.width.equalTo(@(64));
        
    }];
    [qihaoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.top.equalTo(lotteryLabel.mas_bottom).offset(MC_REALVALUE(10));
    }];
    [qihaoDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(qihaoLabel.mas_right);
        make.top.equalTo(qihaoLabel);
    }];
    [kaiJiangLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(qihaoLabel);
        make.top.equalTo(qihaoLabel.mas_bottom).offset(MC_REALVALUE(10));
    }];
    [wanfaLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.top.equalTo(kaiJiangLabel.mas_bottom).offset(MC_REALVALUE(10));
    }];
    [wanfaDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(wanfaLabel.mas_right);
        make.top.equalTo(wanfaLabel);
    }];
    
    [dateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.top.equalTo(wanfaLabel.mas_bottom).offset(MC_REALVALUE(10));
    }];
    [dateDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(dateLabel.mas_right);
        make.top.equalTo(dateLabel);
    }];
    
    [lineView2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(dateLabel.mas_bottom).offset(MC_REALVALUE(20));
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.right.equalTo(self.view).offset(-MC_REALVALUE(10));
        make.height.equalTo(@(0.5));
    }];
    [zhuDanLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.top.equalTo(lineView2.mas_bottom).offset(MC_REALVALUE(20));
    }];
    [zhuDanDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(zhuDanLabel.mas_right);
        make.top.equalTo(zhuDanLabel);
    }];
    [gouMaiLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.top.equalTo(zhuDanLabel.mas_bottom).offset(MC_REALVALUE(10));
    }];
    [gouMaiDeailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(gouMaiLabel.mas_right);
        make.top.equalTo(gouMaiLabel);
    }];
    [zhongJLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.top.equalTo(gouMaiLabel.mas_bottom).offset(MC_REALVALUE(10));
    }];
    [zhongJDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(zhongJLabel.mas_right);
        make.top.equalTo(zhongJLabel);
    }];
    [jiangJinLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.top.equalTo(zhongJLabel.mas_bottom).offset(MC_REALVALUE(10));
    }];
    [jiangJinDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(jiangJinLabel.mas_right);
        make.top.equalTo(jiangJinLabel);
    }];
    
    [touzhuLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MC_REALVALUE(10));
        make.top.equalTo(jiangJinLabel.mas_bottom).offset(MC_REALVALUE(10));
    }];
    [touzhuDetailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(touzhuLabel.mas_right);
        make.top.equalTo(touzhuLabel);
    }];
    [touzhuBtnCopy mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(touzhuLabel);
        make.right.equalTo(self.view).offset(-MC_REALVALUE(10));
        make.height.equalTo(@(40));
        make.width.equalTo(@(64));
    }];
    
    [contnueBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.equalTo(@(44));
    }];
}
- (void)contnueBtnCopyClick{
    
}
- (void)touzhuBtnCopyClick{
    
}
- (void)lotteryBtnClick{
    
}
- (void)liuShuiBtnCopyClick{
    
}
- (void)dingDanBtnCopyClick{
    
}
- (void)cancleBtnClick:(UIButton *)btn{
    
    
    
}

- (void)loadDataAndShow{
    
}
@end
